package cn.edu.scau.cmi.liguanwu.simpleFactory;

import java.net.URL;
import java.util.ResourceBundle;
import java.util.Scanner;

import javafx.event.ActionEvent;
import javafx.fxml.FXML;
import javafx.scene.control.Button;
import javafx.scene.control.TextArea;
import javafx.scene.control.TextField;

public class Controller {
	@FXML
	private TextField textfield;
	@FXML
	private TextArea textarea;
	@FXML
	private Button button;
	public void initialize(URL location, ResourceBundle resources) {
	}
	public void onClick(ActionEvent event) {
		String option = textfield.getText();
		Meat meat = MeatFactory.getm(option);
		textarea.setText(meat.getmeat());;
	}
}
